package com.study.main.ui.sp

import androidx.compose.foundation.layout.Arrangement
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import com.module.compose.base.ComposeActivity
import com.module.compose.base.composable.CommonPage
import com.module.compose.base.viewModel.OurViewModel
import com.study.main.common.SPValue

class SPActivity : ComposeActivity<OurViewModel>() {

    @Composable
    override fun ContentView() {
        CommonPage(
            title = "SP数据保存",
            verticalArrangement = Arrangement.Center,
            horizontalAlignment = Alignment.CenterHorizontally
        ) {
            Text(text = "${SPValue.userName}今年${SPValue.age}岁")
        }
    }
}